﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<MyVoteMVC.Web.Models.Project>" %>


<!--以project为model-->
<div style="color:white;line-height:20px;">
<div>项目名称:<%:Model.Name%></div>
<div>建筑地点:<%:Model.Address%></div>
<%--<div>建成年份:<%:Model.Year%></div>--%>
<div>建筑类型:<%:Model.Type%></div>
<div>获奖情况:<%:Model.Awards%></div>
<%if (Model.ViewCount.HasValue){ %>
<div>浏览次数:<%:Model.ViewCount%></div><%} %>
<div style="font-size:10px;color:yellow;">(点击小图片显示大图和描述)</div>
<a class="gallerybox" rel="fancybox-button" href="/Image/ImageByProjectID/<%:Model.ID %>"
            title="<%: Model.Name%>" description="<%:Model.Description%>">
            <img src="/Image/ThumbnailByProjectID/<%:Model.ID %>" border="0" alt="" />
        </a>
</div>
